package com.hpeng.basic.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.hpeng.basic.dao.OtherDataDao;
import com.hpeng.basic.service.OtherDataService;
import com.hpeng.sys.model.AssetCard;
import com.hpeng.util.Pagination;
@Component("otherDataService")
public class OtherDataServiceImpl implements OtherDataService {
	@Resource
	OtherDataDao otherDataDao;
	
	public void UpdateAssetCard(AssetCard assetCard) {
		otherDataDao.UpdateAssetCard(assetCard);
	}

	public void delAssetCard(String id) {
		otherDataDao.delAssetCard(id);
	}

	public Pagination<AssetCard> getAssetCard(int pageNumber, String[] hql,
			String order) {
		return otherDataDao.getAssetCard(pageNumber, hql, order);
	}
	public AssetCard getAssetCardById(String id) {
		return otherDataDao.getAssetCardById(id);
	}
	public Pagination<AssetCard> getAssetCardByCatId(int pageNumber,String[] hql,String order) {
		return otherDataDao.getAssetCardByCatId(pageNumber, hql, order);
	}

	public void saveAc(AssetCard ac) {
		otherDataDao.savaAc(ac);
	}

}
